﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Web.Mvc;
namespace DroidClaim.Web.Models
{
	public class ClaimInfoModel
	{
		
			    
					 
						[DisplayName("Id")]
						public int Id { get; set; }
									 
					 
						[Required]
						[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
						[DisplayName("Accident Date")]
						public DateTime AccidentDate { get; set; }
									 
					  
						[StringLength(64, ErrorMessage = "AccidentLocation cannot be longer than 64 characters.")]
						[DisplayName("Accident Location")]
						public String AccidentLocation { get; set; }
									 
					 
						[DisplayName("Latitude")]
						public double Latitude { get; set; }
									 
					 
						[DisplayName("Longitude")]
						public double Longitude { get; set; }
									 
					 
						[Required]
						[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
						[DisplayName("UpdateDate")]
						public DateTime UpdateDate { get; set; }
									 
					  
						[StringLength(512, ErrorMessage = "AccImgPath cannot be longer than 512 characters.")]
						[DisplayName("Accident Image Path")]
						public String AccImgPath { get; set; }
									 
					  
						[StringLength(512, ErrorMessage = "CliamDocImgPath cannot be longer than 512 characters.")]
						[DisplayName("CliamDocImgPath")]
						public String CliamDocImgPath { get; set; }
									 
					 
						[Required]
						[Range(1, 1000000, ErrorMessage = "Please select ClaimStatus")]
						[DisplayName("ClaimStatus")]
						public int ClaimStatus { get; set; }
						public string ClaimStatusCode { get; set; }
						public string ClaimStatusName { get; set; }
									 
					 
						[Required]
						[Range(1, 1000000, ErrorMessage = "Please select CliamDoc")]
						[DisplayName("CliamDoc")]
						public int CliamDoc { get; set; }
						public string CliamDocCode { get; set; }
						public string CliamDocName { get; set; }
									 
					 
						[Required]
						[Range(1, 1000000, ErrorMessage = "Please select Customer")]
						[DisplayName("Customer")]
						public int Customer { get; set; }
						public string CustomerCode { get; set; }
						public string CustomerName { get; set; }
									 
					 
						[Required]
						[Range(1, 1000000, ErrorMessage = "Please select Surveyor")]
						[DisplayName("Surveyor")]
						public int Surveyor { get; set; }
						public string SurveyorCode { get; set; }
						public string SurveyorName { get; set; }
									 
											[Required]
						[StringLength(255, ErrorMessage = "Code cannot be longer than 255 characters.")]
						[Remote("doesCodeExist", "ClaimInfo", HttpMethod = "POST", AdditionalFields = "Mode, OldValue", ErrorMessage = "Code already exists. Please enter a different Code")]
						[DisplayName("Code")]
						public String Code { get; set; }
									 
					 
						[Required]
						[StringLength(255, ErrorMessage = "Name cannot be longer than 255 characters.")]
						[DisplayName("Name")]
						public String Name { get; set; }
									 
					 
						[Required]
						[Range(1, 1000000, ErrorMessage = "Please select ClaimNumber")]
						[DisplayName("ClaimNumber")]
						public int ClaimNumber { get; set; }
						public string ClaimNumberCode { get; set; }
						public string ClaimNumberName { get; set; }
													public List<ClaimInfoModel> ListOfClaimInfo { get; set; }
	}
}